﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Sys_UnitCollection : List<Sys_Unit>
    { 
         public int IndexOf(Sys_Unit item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Sys_Unit item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Sys_Unit this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Sys_Unit item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Sys_Unit item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Sys_Unit[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Sys_Unit item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Sys_Unit> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Sys_Unit
    {
        private int _IdUnit;

        public int IdUnit
        {
            get { return _IdUnit; }
            set { _IdUnit = value; }
        }
        private string _UnitCode;

        public string UnitCode
        {
            get { return _UnitCode; }
            set { _UnitCode = value; }
        }
        private string _UnitName;

        public string UnitName
        {
            get { return _UnitName; }
            set { _UnitName = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
    }
}
